package com.jye.rseven.user.mapper;


import com.jye.rseven.domain.Activities;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface ActivitiesMapper {
    List<Activities> findAllActivities(@Param("skip") int skip, @Param("limit")int limit);

    Activities findActivitiesById(@Param("id")int id);

    List<Activities> findActivitiesByTitle(@Param("title")String title, @Param("skip") int skip, @Param("limit")int limit);

    void addActivities(@Param("ac")Activities ac);

    void updateStatus(@Param("id")int id, @Param("status")String status);

    void updateActivities(@Param("ac")Activities ac);

    List<Integer> findAIdsByUId(@Param("uId")int uId, @Param("skip") int skip, @Param("limit")int limit);


    int isExistTitle(@Param("title")String title);

    void deleteActivitiesById(@Param("id")int id);

    List<Activities> findActivitesByType(@Param("type")String type, @Param("skip") int skip, @Param("limit")int limit);

    int isInActivities(@Param("id")int id, @Param("uId")int uId);

    List<Activities> findAcitivitiesByTitle(String title);
}
